<div class="container">
    <div class="row" >
        <div class="span12 blockGray">
            <div class="blockInner">
                 <ul class="breadcrumb">
                     <li>
                         <a href="<?php echo $view->url(array('module'=>'User','controller'=>'Store','action'=>'index'));?>">Tienda</a> <span class="divider">/</span>
                    </li>
                    <li class="active"><?php echo $view->category->getName();?></li>
                </ul>
            </div>
            <div class="blockInner">               
                <?php
                echo '<h1>'.$view->category->getName().'</h1>';
                echo '<ul>';
                foreach ($view->category->getUsers() as $user)
                {
                    if($view->userId!==$user->getId() 
                            && $user->getStatus() == DefaultDb_Entities_User::STATUS_ACTIVE 
                            && count($user->getBranches()))
                    {
                        echo '<li>';
                        echo '<a href="'.$view->url(array('controller' => 'Store', 'action' => 'user', 'id' => $user->getId())).'">'.$user->getCommercialName().'</a>';
                        echo '&nbsp; &nbsp;<a class="btn btn-mini" href="'.$view->url(array('controller' => 'Store', 'action' => 'viewCart', 'id' => $user->getId())).'">Generar Pedido</a>';
                        echo '</li>';
                    }
                }
                echo '</ul>';
                ?>
            </div>
        </div>
    </div>
</div>